import {
    http3,
    http4
} from "@/service/axios";

// 查询收费员列表
export function getCashier(data) {
    return http4.post({
        url: "/user/cashier/list/page",
        data,
    });
}

// 收费员重启/停用账号按钮
export function getAccountStatus(data) {
    return http4.post({
        url: "/user/status/edit",
        data,
    });
}

// 收费员重置密码
export function getResetpwd(data) {
    return http4.post({
        url: `/user/pwd/reset/${data}`,
        data,
    });
}

// 收费员日志
export function getJournal(data) {
    return http4.post({
        url: `/user/opt/list/${data.userId}`,
        data,
    });
}

// 收费员信息导入模板下载接口
export function getExportCashier(data) {
    return http4.get({
        url: `/user/cashier/import/template/download`,
        data,
        responseType: "blob",
    });
}

// 新增收费员
export function getAddCashier(data) {
    return http4.post({
        url: "/user/cashier/add",
        data,
    });
}

// 编辑收费员
export function getEditCashier(data) {
    return http4.post({
        url: "/user/cashier/edit",
        data,
    });
}